import './Components.css'
import React from "react";

const PayChoice = function ({active,clickEvent,name}) {
    const cssClasses = ["choice"];

    if (active) {
        cssClasses.push("active"); // add .active class
    }

    return (
        <div className={cssClasses.join(" ")} onClick={clickEvent}>
            {name}
        </div>
    );
}
export default PayChoice;
